package com.karaoke.android.library.utils

import android.graphics.Rect
import android.support.v7.widget.RecyclerView
import android.view.View

/**
 * Created by Allen on 16/5/6.
 */
class SpaceItemDecoration(private val space: Int) : RecyclerView.ItemDecoration()
{

    override fun getItemOffsets(outRect: Rect,
                                view: View,
                                parent: RecyclerView,
                                state: RecyclerView.State?)
    {

        outRect.top = space
        outRect.left = space
        outRect.right = space
        outRect.bottom = space
    }
}
